package org.zjx.command.enums;


import lombok.Getter;

@Getter
public enum FontType {
    LOCATION("location"),
    NPC("npc"),
    PROP("prop" ),
    SPECIAL("special"),
    TASKBAR("taskbar"),
    LIN("lin");

    private final String name;

    FontType(String name) {
        this.name = name;
    }


    public static FontType fontType(String fontName) {
        for (FontType attr : values()) {
            if (attr.name.equals(fontName)) {
                return attr;
            }
        }
        return null;
    }
}